package com.jie.user.controller;

import com.jie.common.result.Result;
import com.jie.user.service.UserLogoutService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jie
 * @version 1.0 2025-02-15
 */
@RequestMapping("/logout")
@RestController
@RequiredArgsConstructor
public class UserLogoutController {

    private final UserLogoutService userLogOutService;

    @PostMapping
    public Result<Void> logout() {
        userLogOutService.logout();
        return Result.success();
    }

}
